package com.whut.monitor.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Sandeepin
 * 设备实体-对应数据库表
 */
@Entity
@Table(name = "t_equipment")
public class EquipmentEntity {

	private Integer id;
	private String equipmentName;
	// 设备编号
	private String equipmentNum;
	// 设备类型，0：铣床；1：车床
	private Integer equipmentCategory;
	// 设备信号0：小型；1：中型；2：重型
	private Integer equipmentType;
	// 出厂日期
	private Date productDate;
	// 公司
	private String company;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name="equipment_name")
	public String getEquipmentName() {
		return equipmentName;
	}

	public void setEquipmentName(String equipmentName) {
		this.equipmentName = equipmentName;
	}

	@Column(name="equipment_num")
	public String getEquipmentNum() {
		return equipmentNum;
	}

	public void setEquipmentNum(String equipmentNum) {
		this.equipmentNum = equipmentNum;
	}

	@Column(name="equipment_category")
	public Integer getEquipmentCategory() {
		return equipmentCategory;
	}

	public void setEquipmentCategory(Integer equipmentCategory) {
		this.equipmentCategory = equipmentCategory;
	}

	@Column(name="equipment_type")
	public Integer getEquipmentType() {
		return equipmentType;
	}

	public void setEquipmentType(Integer equipmentType) {
		this.equipmentType = equipmentType;
	}

	@Column(name="product_date")
	public Date getProductDate() {
		return productDate;
	}

	public void setProductDate(Date productDate) {
		this.productDate = productDate;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

}
